package com.anjbo.service.property.impl;

import com.anjbo.bean.property.TZCPropertyDto;
import com.anjbo.dao.app.property.PropertyAVGMapper;
import com.anjbo.service.property.PropertyAVGService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/4/7.
 */
@Service("propertyAVGService")
public class PropertyAVGServiceImpl implements PropertyAVGService {

    @Autowired
    private PropertyAVGMapper propertyAVGMapper;

    @Override
    public List<TZCPropertyDto> selectTZCPropertyDtoByMonthBefore12(Map<String, String> params) {
        List<TZCPropertyDto> list= propertyAVGMapper.selectTZCPropertyDtoByMonthBefore12(params);
        return list;
    }

    @Override
    public TZCPropertyDto selectAvgByLastMouth(Map<String, String> params) {
        return propertyAVGMapper.selectAvgByLastMouth(params);
    }
}
